#include "ImageProcessor.h"
#include <QDebug>

ImageProcessor::ImageProcessor()
{
    PBuffer = new PixelBuffer();
}

void ImageProcessor::preRender()
{

}

QImage ImageProcessor::process(QImage image)
{
    PBuffer->loadImage(image);
    preRender();
    PBuffer->renderImage();
    apply();
    glFlush();
    return PBuffer->extractImage();
}

